package answer

import (
	"fmt"
	"math/bits"
)

func way1(turnedOn int) []string {
	result := make([]string, 0)
	for i := uint(0); i <= 11; i++ {
		for j := uint(0); j <= 59; j++ {
			if bits.OnesCount(i)+bits.OnesCount(j) == turnedOn {
				result = append(result, fmt.Sprintf("%d:%02d", i, j))
			}
		}
	}
	return result
}
